package com.zhangmeng.service.impl;

import com.zhangmeng.service.Message;

/**
 * @author zm
 * @date 2025/2/22 17:31
 * @version: 1.0
 */
public class MessageImpl implements Message {

    private int Id;       //消息的ID
    private int DataLen; //消息的长度
    private byte[] Data;//消息的内容

    @Override
    public int GetDataLen() {
        return this.DataLen;
    }

    @Override
    public int GetMsgId() {
        return this.Id;
    }

    @Override
    public byte[] GetData() {
        return this.Data;
    }

    @Override
    public void SetMsgId(int msgId) {
        this.Id = msgId;
    }

    @Override
    public void SetData(byte[] bytes) {
        this.Data = bytes;
    }

    @Override
    public void SetDataLen(int length) {
        this.DataLen = length;
    }
}
